package org.hxyjs.entity;;

import org.hxyjs.vo.MailUser;

import java.io.Serializable;

/**
 * @author
 */
public class User  extends MailUser implements Serializable {
    private String uno;

    private String mtno;

    private String uname;

    private String upwd;

    private String uemail;

    private Integer uintegral;

    private String uphone;

    private static final long serialVersionUID = 1L;

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public String getMtno() {
        return mtno;
    }

    public void setMtno(String mtno) {
        this.mtno = mtno;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public String getUemail() {
        return uemail;
    }

    public void setUemail(String uemail) {
        this.uemail = uemail;
    }

    public Integer getUintegral() {
        return uintegral;
    }

    public void setUintegral(Integer uintegral) {
        this.uintegral = uintegral;
    }

    public String getUphone() {
        return uphone;
    }

    public void setUphone(String uphone) {
        this.uphone = uphone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
            && (this.getMtno() == null ? other.getMtno() == null : this.getMtno().equals(other.getMtno()))
            && (this.getUname() == null ? other.getUname() == null : this.getUname().equals(other.getUname()))
            && (this.getUpwd() == null ? other.getUpwd() == null : this.getUpwd().equals(other.getUpwd()))
            && (this.getUemail() == null ? other.getUemail() == null : this.getUemail().equals(other.getUemail()))
            && (this.getUintegral() == null ? other.getUintegral() == null : this.getUintegral().equals(other.getUintegral()))
            && (this.getUphone() == null ? other.getUphone() == null : this.getUphone().equals(other.getUphone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getMtno() == null) ? 0 : getMtno().hashCode());
        result = prime * result + ((getUname() == null) ? 0 : getUname().hashCode());
        result = prime * result + ((getUpwd() == null) ? 0 : getUpwd().hashCode());
        result = prime * result + ((getUemail() == null) ? 0 : getUemail().hashCode());
        result = prime * result + ((getUintegral() == null) ? 0 : getUintegral().hashCode());
        result = prime * result + ((getUphone() == null) ? 0 : getUphone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uno=").append(uno);
        sb.append(", mtno=").append(mtno);
        sb.append(", uname=").append(uname);
        sb.append(", upwd=").append(upwd);
        sb.append(", uemail=").append(uemail);
        sb.append(", uintegral=").append(uintegral);
        sb.append(", uphone=").append(uphone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
